﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace NHModel.Entities
{
    public class OrderStatus
    {
        #region Member Variables

        protected int _id;
        protected string _statusName;
        protected IList _orderStatusOrderses;


        #endregion

        #region Constructors

        public OrderStatus() { }

        public OrderStatus(string statusName)
        {
            this._statusName = statusName;
        }

        #endregion

        #region Public Properties

        public virtual int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public virtual string StatusName
        {
            get { return _statusName; }
            set
            {
                if (value != null && value.Length > 50)
                    throw new ArgumentOutOfRangeException("Invalid value for StatusName", value, value.ToString());
                _statusName = value;
            }
        }

        public virtual IList OrderStatusOrderses
        {
            get
            {
                if (_orderStatusOrderses == null)
                {
                    _orderStatusOrderses = new ArrayList();
                }
                return _orderStatusOrderses;
            }
            set { _orderStatusOrderses = value; }
        }


        #endregion

    }
}
